<clr-modal [(clrModalOpen)]="modalOpened" [clrModalSize]="'xl'" #modal>
  <h3 class="modal-title">迁移部署到[{{cluster}}]机房
    <wayne-modal-operate [modal]="modal" *ngIf="modalOpened"></wayne-modal-operate>
  </h3>
  <div class="modal-body">
    <div class="alert alert-warning" *ngIf="warningMsg">
      <div class="alert-items">
        <div class="alert-item static">
          <div class="alert-icon-wrapper">
            <clr-icon class="alert-icon" shape="exclamation-circle"></clr-icon>
          </div>
          <span class="alert-text">
             {{warningMsg}}
          </span>
        </div>
      </div>
    </div>
    <form #ngForm="ngForm">
      <section class="form-block">
        <div class="form-group" style="padding-left: 135px;">
          <label for="deployment_app" class="col-md-3 form-group-label-override required">应用</label>
          <div class="select form-control">
            <select [(ngModel)]="selectedApp"
                    id="deployment_app"
                    name="deployment_app">
              <option *ngFor="let app of apps" [ngValue]="app">{{app.name}}
              </option>
            </select>
          </div>
        </div>
        <div class="form-group" style="padding-left: 135px;">
          <label for="deployment_metadata" class="col-md-3 form-group-label-override">部署模版</label>
          <wayne-ace-editor-box id="deployment_metadata"></wayne-ace-editor-box>

        </div>
      </section>
    </form>
    <div class="modal-footer">

      <button type="button" class="btn btn-outline" (click)="onCancel()">{{'BUTTON.CANCEL' | translate}}</button>
      <button type="button" class="btn btn-primary" [disabled]="!isValid"
              (click)="onSubmit()">{{'BUTTON.SUBMIT' | translate}}</button>
    </div>
  </div>
</clr-modal>
